# -*- coding:utf-8 -*-
# 调用栈


def fact(x):
    if x == 1:   # 基线
        return 1
    else:
        return x*fact(x-1)  # 递归



print(fact(5))